package work;

/**
 * @TODO
 * @Author xu
 * 2025/2/24
 */
import java.util.Scanner;
public class Day3_12 {
    public static void main(String[] args) {
        int i,t1 = 1,t2 = 1,m;
        Scanner input = new Scanner(System.in);
        System.out.println("输出几项：");
        int n = input.nextInt();
        System.out.println("斐波那契数列:");
        for (i = 1; i <= n; ++i){
            System.out.print(t1+"\t");
            m = t1 + t2;
            t1 = t2;
            t2 = m;
        }
    }


}
